package cn.luckdou.WeChat.model;


import cn.luckdou.WeChat.utils.MessageUtil;

import java.util.List;
import java.util.Map;

/**
 * @author Dadou 2017-12-5
 * 多图文消息的回复
 */
public class NewsMessage extends BaseMessage {
    // 图文消息个数，限制为10条以内
    private int ArticleCount;
    // 多条图文消息信息，默认第一个item为大图
    private List<Article> Articles;

    public int getArticleCount() {
        return ArticleCount;
    }

    public void setArticleCount(int articleCount) {
        ArticleCount = articleCount;
    }

    public List<Article> getArticles() {
        return Articles;
    }

    public void setArticles(List<Article> articles) {
        Articles = articles;
    }

    public NewsMessage(Map<String,String> map) {
        super.setMap(map, MessageUtil.RESP_MESSAGE_TYPE_NEWS);

    }
}
